﻿using System.Runtime.Serialization;

namespace FuiouPay.Models.Request {
    /// <summary>
    /// 统一下单请求报文
    /// </summary>
    public class WxPreCreateRequestInfo : PayRequestInfo {
        /// <summary>
        /// 商品标识
        /// </summary>
        [DataMember(Name = "product_id")]
        public string ProductId { get; set; }
        /// <summary>
        /// 必填，通知地址, 接收富友异步通知回调地址。
        /// </summary>
        [DataMember(Name = "notify_url")]
        public string NotifyUrl { get; set; }

        /// <summary>
        /// 限制支付, no_credit:不能使用信用卡 credit_group：不能使用花呗以及信用卡
        /// </summary>
        [DataMember(Name = "limit_pay")]
        public string LimitPay { get; set; }

        /// <summary>
        /// 必填，订单类型:
        /// JSAPI--公众号支付
        /// FWC--支付宝服务窗、支付宝小程序
        /// LETPAY-微信小程序
        /// BESTPAY--翼支付js
        /// </summary>
        [DataMember(Name = "trade_type")]
        public string TradeType { get; set; }

        /// <summary>
        /// 用户标识(暂已废弃,不影响已对接完成的)
        /// </summary>
        [DataMember(Name = "openid")]
        public string OpenId { get; set; }

        /// <summary>
        /// 子商户用户标识
        /// 支付宝服务窗为用户buyer_id(此场景必填)
        /// 微信公众号为用户的openid(小程序, 公众号, 服务窗必填)
        /// </summary>
        [DataMember(Name = "sub_openid")]
        public string SubOpenId { get; set; }

        /// <summary>
        /// 子商户公众号id,
        /// 微信交易为商户的appid(小程序, 公众号必填)
        /// </summary>
        [DataMember(Name = "sub_appid")]
        public string SubAppid { get; set; }
    }
}
